package org.scmpatrol.scm.action;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.scmpatrol.scm.action.SCMAction;
import org.scmpatrol.scm.SCMPath;

/**
 * Not following the naming contract but it is done like this to not be included in the test filter
 */
public abstract class SCMActionTestAbstract {

	protected final static String PATH = "/the path to test"; 
	
	@Test
	public void testGetPath() {
	    assertEquals("Path not correct", PATH, getAction().getPath().getPath());
	}

	@Test
	public void testSetPath() {
		getAction().setPath(new SCMPath("/TOTEST"));
		assertEquals("Path not updated", "/TOTEST", getAction().getPath().getPath());
	}
	
	
	public abstract SCMAction getAction();
	

}
